package com.smile.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName("smile_plus_user")
@Data
@ToString
public class SmilePlusUser {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_name")
    private String userName;

    @TableField("real_name")
    private String realName;

    @TableField("mobile")
    private String mobile;

    @TableField("password")
    private String password;

    @TableField("role_id")
    private Long roleId;

    @TableField("image_url")
    private String imageUrl;

    /**
     * 1. 开启
     * 2. 关闭
     * 3. 不能修改
     */
    @TableField("status")
    private Integer status;

    @TableField("salt")
    private String salt;

    @TableField("expire_time")
    private LocalDateTime expireTime;

    //1为后台系统账号，2为商家账号, 3为飞手账号
    @TableField("user_type")
    private Integer userType;

    @TableField("organization_id")
    private Long organizationId;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("modify_time")
    private LocalDateTime modifyTime;

    @TableField("user_id")
    private Long userId;

    @TableField("shopping_name")
    private String shoppingName;

    @TableField("delete_status")
    private Boolean deleteStatus;

    /**
     * 地图中心点名称
     */
    @TableField("map_center_name")
    private String mapCenterName;

    /**
     * 经度
     */
    @TableField("longitude")
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @TableField("latitude")
    private BigDecimal latitude;
}
